package com.whale.api.impl;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import com.whale.api.IWebApiService;
import com.whale.entity.Comment;
import com.whale.entity.FollowCount;
import com.whale.entity.Image;
import com.whale.entity.Location;
import com.whale.entity.PostStream;
import com.whale.entity.Response;
import com.whale.entity.Stream;
import com.whale.entity.StreamPart;
import com.whale.entity.User;

public class MockWebApiService implements IWebApiService {

    @Override
    public Response<User> login(String email, String password) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public boolean logout() {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public Response<User> register(String email, String name, String password, String rpassword) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<Stream> postStream(PostStream postStream) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<Stream> viewStream(String streamId) {
        Response<Stream> response = new Response<Stream>(false,200l);
        response.data = new Stream(streamId,streamId,"炒饭4","很好吃4").addStreamPart(new StreamPart("http://tp1.sinaimg.cn/1739443964/50/1275747472/1","好菜"));
        return null;
    }

    
    @Override
    public Response<List<Stream>> viewOtherWall(String uid, String orderBy, int size) {
        Response<List<Stream>> response = new Response<List<Stream>>(false,200l);
        List<Stream> streams = new ArrayList<Stream>();
        streams.add(new Stream("1","1","炒饭","很好吃").addStreamPart(new StreamPart("http://tp1.sinaimg.cn/1739443964/50/1275747472/1","好菜")));
        streams.add(new Stream("2","2","炒饭2","很好吃2").addStreamPart(new StreamPart("http://tp1.sinaimg.cn/1739443964/50/1275747472/1","好菜")));
        streams.add(new Stream("3","3","炒饭3","很好吃3").addStreamPart(new StreamPart("http://tp1.sinaimg.cn/1739443964/50/1275747472/1","好菜")));
        streams.add(new Stream("4","4","炒饭4","很好吃4").addStreamPart(new StreamPart("http://tp1.sinaimg.cn/1739443964/50/1275747472/1","好菜")));
        response.data = streams;
        return response;
    }

    @Override
    public Response<List<Stream>> viewSelfWall(String orderBy, int size) {
        Response<List<Stream>> response = new Response<List<Stream>>(false,200l);
        List<Stream> streams = new ArrayList<Stream>();
        streams.add(new Stream("1","1","炒饭","很好吃").addStreamPart(new StreamPart("http://tp1.sinaimg.cn/1739443964/50/1275747472/1","好菜")));
        streams.add(new Stream("2","2","炒饭2","很好吃2").addStreamPart(new StreamPart("http://tp1.sinaimg.cn/1739443964/50/1275747472/1","好菜")));
        streams.add(new Stream("3","3","炒饭3","很好吃3").addStreamPart(new StreamPart("http://tp1.sinaimg.cn/1739443964/50/1275747472/1","好菜")));
        streams.add(new Stream("4","4","炒饭4","很好吃4").addStreamPart(new StreamPart("http://tp1.sinaimg.cn/1739443964/50/1275747472/1","好菜")));
        response.data = streams;
        return response;
    }
    

    @Override
    public Response<String> removeStream(String streamId) {
        Response<String> response = new Response<String>(false,200l);
        response.data = streamId;
        return response;
    }

    
    
    @Override
    public Response<Location> getLocations(String streamId) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<Image> uploadImage(File imageFile) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<Image> uploadAvatar(File imageFile) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<List<Comment>> getComments(String sid, int offset, int size) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<String> removeComment(String id) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<Long> countComment(String sid) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<Comment> addComment(String sid, String content) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<List<User>> recommend() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<Object> addFollow(String fuid) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<Object> removeFollow(String fuid) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<List<User>> getFans(int offset, int size) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<Long> countFans(int offset, int size) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<List<User>> getMyFollows(int offset, int size) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<Long> countMyFollows(int offset, int size) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<List<User>> getMyFirends(int offset, int size) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<Long> countMyFirends(int offset, int size) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Response<FollowCount> countAll(int offset, int size) {
        // TODO Auto-generated method stub
        return null;
    }

    
}
